//主数据表格配置
export const columns = [
  { title: '客户编码', dataIndex: 'keHudm',key: 'keHudm',   align:'center', },
 { title: '客户名称',  dataIndex: 'keHumc', key: 'keHumc' ,align:'center'},
 { title: '所在城市', dataIndex: 'chengShi', key: 'chengShi', align:'center' },
 { title: '负责人姓名', dataIndex: 'fuZerxm', key: 'fuZerxm', align:'center'  },
 { title: '负责人联系电话', dataIndex: 'fuZerdh', key: 'fuZerdh',align:'center'  },
 { title: '联系人姓名', dataIndex: 'lianXirxm', key: 'lianXirxm', align:'center' },
 { title: '联系人联系电话', dataIndex: 'lianXirdh', key: 'lianXirdh', align:'center'  },
 { title: '状态', dataIndex: 'zhuangTai', key: 'zhuangTai', align:'center' },
 { title: '操作', dataIndex: 'action', key: 'operation', width: 150, align: 'center', scopedSlots: { customRender: 'action' }, },
]
//主数据查询配置
export const q_formInfos = [
  { label: '客户名称', name: 'keHumc', type: 'input', placeholder: '客户名称' },
  { label:'客户编码', name:'keHudm',type:'input',placeholder:'客户编码'},
  { label: ['查询', '重置'], type: 'botton' },
]

export const q_formDatas = {
  keHumc: null,
  keHushxxdm: null,
}

//添加主数据表单配置
export const s_FormInfo = [
  { label: '请输入客户单位社会信用代码', isDisabled: false, name: 'keHushxxdm', type: 'orgsearch', placeholder: '' },
  { label: '客户编码', name: 'keHudm', isDisabled: false, type: 'input', placeholder: ' 客户编码' },
  // { label: '',name:'keHushxxdm',type:'input',placeholder:' 客户社会信用代码'},
  { label: '客户名称', name: 'keHumc', isDisabled: false, type: 'input', placeholder: ' 客户名称' },
  { label: '客户城市', name: 'chengShi', isDisabled: false, type: 'input', placeholder: ' 客户城市' },
  { label: '客户负责人姓名', name: 'fuZerxm', isDisabled: true, type: 'input', placeholder: ' 客户负责人姓名' },
  { label: '客户负责人联系电话', name: 'fuZerdh', isDisabled: true, type: 'input', placeholder: ' 客户负责人联系电话' },
  { label: '客户联系人姓名', name: 'lianXirxm', isDisabled: true, type: 'input', placeholder: ' 客户联系人姓名' },
  { label: '客户联系人联系电话', name: 'lianXirdh', isDisabled: true, type: 'input', placeholder: ' 客户联系人联系电话' }
]

export const s_formDatas = {
  sysSeq: 0,
  pid: '',
  keHudm: null,
  keHuhy: null,
  keHushxxdm: null,
  keHuOrgPid: null,
  keHumc: null,
  chengShi: null,
  diZhi: null,
  fuZerxm: null,
  fuZerdh: null,
  lianXirxm: null,
  lianXirdh: null,
  zhuangTai: null,
}
export const s_rules = {
  keHushxxdm: [{ required: true, message: '信用代码必填', trigger: 'blur' }],
  keHumc: [{ required: true, message: '名称必填', trigger: 'blur' }],
  fuZerxm: [{ required: true, message: '负责人必填', trigger: 'change' }],
  lianXirxm: [{ required: true, message: '联系人必填', trigger: 'change' }],
  lianXirdh: [{ required: true, message: '联系人电话必填', trigger: 'blur' }],
}

//查看明细显示配置
export const infoDatas = []
